package ld.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import ld.pojo.EmpExample;
import java.util.List;
import ld.pojo.Emp;
import ld.mapper.EmpMapper;
import ld.service.EmpService;
/**
 * @Author: Liudao
 * @Date: 2022-08-10-15:47
 * @Description: 
 */
@Service
public class EmpServiceImpl implements EmpService{

    @Resource
    private EmpMapper empMapper;

    @Override
    public long countByExample(EmpExample example) {
        return empMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(EmpExample example) {
        return empMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer eid) {
        return empMapper.deleteByPrimaryKey(eid);
    }

    @Override
    public int insert(Emp record) {
        return empMapper.insert(record);
    }

    @Override
    public int insertSelective(Emp record) {
        return empMapper.insertSelective(record);
    }

    @Override
    public List<Emp> selectByExample(EmpExample example) {
        return empMapper.selectByExample(example);
    }

    @Override
    public Emp selectByPrimaryKey(Integer eid) {
        return empMapper.selectByPrimaryKey(eid);
    }

    @Override
    public int updateByExampleSelective(Emp record,EmpExample example) {
        return empMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Emp record,EmpExample example) {
        return empMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Emp record) {
        return empMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Emp record) {
        return empMapper.updateByPrimaryKey(record);
    }

}
